package routers

import (
	"Pj/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/article", &controllers.PjArticleController{})
	beego.Router("/article/create", &controllers.PjArticleController{}, "*:Create")
	beego.Router("/article/update", &controllers.PjArticleController{}, "*:Update")
	beego.Router("/article/view", &controllers.PjArticleController{}, "*:View")
	beego.Router("/article/delete", &controllers.PjArticleController{}, "*:Del")

	beego.Router("/type", &controllers.PjTypeController{})
	beego.Router("/type/create", &controllers.PjTypeController{}, "*:Create")
	beego.Router("/type/update", &controllers.PjTypeController{}, "*:Update")
	beego.Router("/type/view", &controllers.PjTypeController{}, "*:View")
	beego.Router("/type/delete", &controllers.PjTypeController{}, "*:Del")

}
